Expand description
This crate provides logging functions and configuration for Bevy apps, and automatically configures platform specific log handlers (i.e. Wasm or Android).
The macros provided for logging are reexported from tracing
,
and behave identically to it.
By default, the LogPlugin
from this crate is included in Bevy’s DefaultPlugins
and the logging macros can be used out of the box, if used.
For more fine-tuned control over logging behavior, set up the LogPlugin
or
DefaultPlugins
during app initialization.
Re-exports§
pub use tracing_subscriber;
Modules§
- The log prelude.
Macros§
- Constructs an event at the debug level.
- Call
debug!
once per call site. - Constructs a span at the debug level.
- Constructs an event at the error level.
- Call
error!
once per call site. - Constructs a span at the error level.
- Constructs an event at the info level.
- Call
info!
once per call site. - Constructs a span at the info level.
- Call some expression only once per call site.
- Constructs an event at the trace level.
- Call
trace!
once per call site. - Constructs a span at the trace level.
- Constructs an event at the warn level.
- Call
warn!
once per call site. - Constructs a span at the warn level.
Structs§
- Describes the level of verbosity of a span or event.
- Adds logging to Apps. This plugin is part of the
DefaultPlugins
. Adding this plugin will setup a collector appropriate to your target platform: